package com.gitee.cashzhang27.test.cloud.oauth.auth.server.extended.comstants;

/**
 * @author Cash Zhang
 * @version v1.0
 * @since 2019/01/26 16:21
 */
public class SecurityConstants {


  public static final String RSA_ALGORITHM = "RSA";

  public static final int RSA_KEY_SIZE = 1024;

  /**
   * redis前缀
   */
  public static final String FTF_PREFIX = "ftf_";
  /**
   * oauth 相关前缀
   */
  public static final String OAUTH_PREFIX = "oauth:";
  /**
   * 用户ID
   */
  public static final String USER_ID = "user_id";
  /**
   * 用户编码
   */
  public static final String USER_CODE = "user_code";
  /**
   * 用户姓名
   */
  public static final String USER_NAME = "user_name";
  /**
   * 角色编码
   */
  public static final String ROLE_CODES = "role_codes";
  /**
   * 岗位编码
   */
  public static final String POSITION_CODES = "position_codes";
  /**
   *
   */
  public static final String DATA_SCOPE = "data_scope";
  /**
   * 部门ID
   */
  public static final String DEPARTMENT_CODE = "department_code";
  /**
   * token剩余时间
   */
  public static final String EXPIRE = "expire";
  /**
   * 用户公钥前缀
   */
  public static final String JWT_RSA_USER_PUB = "user:pub:";
  /**
   * 用户私钥前缀
   */
  public static final String JWT_RSA_USER_PRI = "user:pri:";
  /**
   * 客户端公钥前缀
   */
  public static final String JWT_RSA_CLIENT_PUB = "client:pub:";
  /**
   * 客户端私钥前缀
   */
  public static final String JWT_RSA_CLIENT_PRI = "client:pri:";

  /**
   * 自定义登录URL
   */
  public static final String MOBILE_TOKEN_URL = "/mobile/token/*";
  /**
   * 角色前缀
   */
  public static final String ROLE = "ROLE_";
  /**
   * redis，RSA公钥、私钥对
   */
  public static final String RSA_KEY_PAIR = "rsa_key_pair:";
  /**
   * ftf公钥
   */
  public static final String FTF_PUB = "ftf_pub:";
  /**
   * ftf私钥
   */
  public static final String FTF_PRI = "ftf_pri:";
  /**
   * ftf公钥
   */
  public static final String APP_PUB = "app_pub:";
  /**
   * ftf私钥
   */
  public static final String APP_PRI = "app_pri:";
}
